package com.qcu.util;

public enum ResponseCode {
    SUCCESS(200, "成功"),
    FAILURE(500, "失败"),
    // 登录过期
    LOGIN_OUT(119, "登录过期"),
    // 限流
    LIMIT_RATE(996, "八嘎雅鹿，你滴点那么快滴干什么滴干活..."),
    UNAUTHORIZED(401, "未授权"),
    NOT_FOUND(404, "未找到"),
    BAD_REQUEST(400, "请求错误");


    private final int code;
    private final String message;

    ResponseCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
